package com.loveazure.bll;

public class LearnedProgress {
	private int learnedTimes;
	private int learnedNumber;
	private int spentTime;

	public LearnedProgress() {
		learnedNumber = Handler.getInstance().getUserCourse().getWordLearned()
				.size();
	}

	public void increaseTimes() {
		this.learnedTimes++;
	}

	public void increaseNumber() {
		this.learnedNumber++;
	}

	public void increaseSpent() {
		spentTime++;
	}

	@Override
	public String toString() {

		return "记忆次数:" + learnedTimes + " 记忆单词:" + learnedNumber + " 计时:"
				+ getSpentTimeStr();
	}

	public String getSpentTimeStr() {
		int sec, min, hour;
		hour = spentTime / (60 * 60);
		min = spentTime % (60 * 60) / 60;
		sec = spentTime % (60 * 60) % 60;
		return hour + " 时 " + min + " 分 " + sec + " 秒 ";
	}
}
